package com.seari.groovyrunner.mapper;

import com.seari.groovyrunner.bean.GroovyTask;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface GroovyMapper {

    int addGroovyTask(List<GroovyTask> fmList);

    int deleteGroovyTask(@Param("id")Integer id);

    int updateGroovyTask(GroovyTask bean);

    List<GroovyTask> getTaskListByName(@Param("name")String taskName,@Param("startPage")String startPage,@Param("pageSize")String pageSize);

    int getTaskListCountByName(@Param("name")String taskName);

    int changeScriptStateById(@Param("state")int i, @Param("id")int id);

    List<GroovyTask> getAllTaskList();

    GroovyTask getTaskByID(@Param("id")Integer id);

    List<GroovyTask> getTaskListByService(@Param("service")String service);

    List<GroovyTask> getTaskListByPath(@Param("path")String path);
}